package ws_cxf_server.publish;

import org.apache.cxf.jaxws.JaxWsServerFactoryBean;

import ws_cxf_server.WeatcherServerInterface;
import ws_cxf_server.impl.WeatcherServerImpl;

public class WeatcherServerPublish {
	
	public static void main(String[] args) {
		//JaxWsServerFactoryBean发布服务
		JaxWsServerFactoryBean bean  = new JaxWsServerFactoryBean();
		bean.setServiceClass(WeatcherServerInterface.class);
		bean.setServiceBean(new WeatcherServerImpl());
		bean.setAddress("http://127.0.0.1:12345/weatcher1");
		bean.create();
	}
	

}
